package com.yq.wiki.service;

import com.yq.wiki.domain.Demo;
import com.yq.wiki.mapper.DemoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service//让spring扫描到该类
public class DemoService {

    @Resource
    private DemoMapper demoMapper;


    public List<Demo> list() {
        return demoMapper.selectByExample(null);
    }


}
